package com.oop.demo04;

public class application {
    public static void main(String[] args) {
        Animal animal = new Animal("崽崽",3);
        animal.run();

        Cat cat = new Cat();
        cat.sayHello();
        cat.eat();

        Dog dog = new Dog();
        dog.sayHello();
        dog.sleep();



    }
}
